<h1>Editing address_book</h1>

<% form_for(@address_book) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </p>
  <p>
    <%= f.label :address %><br />
    <%= f.text_field :address %>
  </p>
  <p>
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </p>
  <p>
    <%= f.label :telephone_number %><br />
    <%= f.text_field :telephone_number %>
  </p>
  <p>
    <%= f.label :extension_number %><br />
    <%= f.text_field :extension_number %>
  </p>
  <p>
    <%= f.label :sms_number %><br />
    <%= f.text_field :sms_number %>
  </p>
  <p>
    <%= f.label :contact_person %><br />
    <%= f.text_field :contact_person %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

<%= link_to 'Show', @address_book %> |
<%= link_to 'Back', address_books_path %>